import Vue from 'vue'
import VueRouter from "vue-router";
Vue.use(VueRouter)
const routes = [
    {
        path:"/",
        name:"Main",
        component:()=>import("../views/Main.vue"),
        children:[
            {
                path:"/",
                name:"home",
                component:()=>import('../views/home/index.vue')
            },
            {
                path:"/user",
                name:"user",
                component:()=>import('../views/User/index.vue')
            }
        ]
    }
]
const router = new VueRouter({
    mode:"history",
    routes
})
export default router